/**
 * 封装主页接口模块
 */

import request from '@/util/request.js'
// 请求轮播图模块

export const getHomeSwiper = ()=>{
    return request({
        method:'GET',
        url:'/banner?type=1'
    })
}


// 推荐新音乐
export const getNewMusic = params=>{
    return request({
        method:'GET',
        url:'/personalized/newsong',
        params
    })
}

//获取音乐url
export const getMusicUrl = params=>{
    return request({
        method:'GET',
        url:'/song/url',
        params
    })
}
//获取歌曲详情
export const getMusicContainer = params=>{
    return request({
        method:'GET',
        url:'/song/detail',
        params
    })
}
//获取歌词详情
export const getMusicWords = params=>{
    return request({
        method:'GET',
        url:'/lyric',
        params
    })
}



